--TEST--
Bug #76874: xml_parser_free() should never leak memory
--SKIPIF--
<?php include("skipif.inc"); ?>
--FILE--
<?php

class c
{
	private $xml;
	private $test;

	public function test()
	{
		$this->xml = xml_parser_create();
		xml_set_character_data_handler($this->xml, array(&$this, 'handle_cdata'));
		xml_parser_free($this->xml);
	}

	public function handle_cdata(&$parser, $data)
	{
	}
}

$object = new c();
$object->test();

?>
===DONE===
--EXPECT--
===DONE===
